//=============================================================================
// XBus 
//-----------------------------------------------------------------------------
// File        : xbus_def.h
// Description : 
// Author      : Ismail Sabry
// Date        : 1/30/2009
//=============================================================================
#ifndef __XBUS_CELL_H__
#define __XBUS_CELL_H__

#include <xbus.h>

//-----------------------------------------------------------------------------
// 
//-----------------------------------------------------------------------------

int XBUS_init_cell(t_XBUS_cell *cell);

t_XBUS_cell *XBUS_get_cell_by_index(t_XBUS *xbus, 
				    t_XBUS_module  *module, 
				    unsigned int index);

int XBUS_chain_cell(t_XBUS_cell *cell, t_XBUS_cell *next);
t_XBUS_cell *XBUS_get_next_cell(t_XBUS_cell *cell);

int XBUS_write_cell(t_XBUS *xbus, t_XBUS_cell *cell, unsigned char *buf, unsigned int len);
int XBUS_read_cell(t_XBUS *xbus, t_XBUS_cell *cell, unsigned char *buf, unsigned int len);


#endif //__XBUS_CELL_H__
